BIN=server_tcp
CIN=client_tcp
CC=g++
FLAGS=-Wall -std=c++17


.PHONY:all
all:$(BIN) $(CIN)

$(BIN):TcpServer.cc
	$(CC) -o $@  $^ $(FLAGS) -lpthread -ljsoncpp

$(CIN):TcpClient.cc
	$(CC) -o $@  $^ $(FLAGS) -lpthread -ljsoncpp

.PHONY:clean
clean:
	rm -f $(BIN)  $(CIN)
